package marking.liu.pojo.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "用户登录返回数据", description = "LoginVo")
public class LoginVo {

    @JsonSerialize(using = ToStringSerializer.class) // 转换为JSON数据前 将Long类型转换为String类型 后进行数据传输
    private Long id;
    private String username;
    private String nickName;
    private String phone;
}
